package language;

public class LangEnv {
    public static String badCommand;
    public static String invalidParameter;
    public static String createFailure;
    public static String createSuccess;
    public static String files;
    public static String fileNotExist;
    public static String deleteFailure;
    public static String deleteSuccess;
    public static String helpPrompt;
    public static String helpUse;
    public static String exitUse;
    public static String verUse;
    public static String setLangUse;
    public static String dirLsUse;
    public static String mkfileUse;
    public static String typeUse;
    public static String echoUse;
    public static String clsUse;
    public static String rmUse;
    public static void setLangEnv(Chinese e) {
        badCommand       = e.badCommand;
        invalidParameter = e.invalidParameter;
        createFailure    = e.createFailure;
        createSuccess    = e.createSuccess;
        files            = e.files;
        fileNotExist     = e.fileNotExist;
        deleteFailure    = e.deleteFailure;
        deleteSuccess    = e.deleteSuccess;
        helpPrompt       = e.helpPrompt;
        helpUse          = e.helpUse;
        exitUse          = e.exitUse;
        verUse           = e.verUse;
        setLangUse       = e.setLangUse;
        dirLsUse         = e.dirLsUse;
        mkfileUse        = e.mkfileUse;
        typeUse          = e.typeUse;
        echoUse          = e.echoUse;
        clsUse           = e.clsUse;
        rmUse            = e.rmUse;
    }
    public static void setLangEnv(English e) {
        badCommand       = e.badCommand;
        invalidParameter = e.invalidParameter;
        createFailure    = e.createFailure;
        createSuccess    = e.createSuccess;
        files            = e.files;
        fileNotExist     = e.fileNotExist;
        deleteFailure    = e.deleteFailure;
        deleteSuccess    = e.deleteSuccess;
        helpPrompt       = e.helpPrompt;
        helpUse          = e.helpUse;
        exitUse          = e.exitUse;
        verUse           = e.verUse;
        setLangUse       = e.setLangUse;
        dirLsUse         = e.dirLsUse;
        mkfileUse        = e.mkfileUse;
        typeUse          = e.typeUse;
        echoUse          = e.echoUse;
        clsUse           = e.clsUse;
        rmUse            = e.rmUse;
    }
    public static class Chinese extends LangEnv {
        public static String badCommand       = "不存在该命令的此用法";
        public static String invalidParameter = "命令参数不合法";
        public static String createFailure    = "文件创建失败";
        public static String createSuccess    = "文件创建成功";
        public static String files            = "个文件";
        public static String fileNotExist     = "文件不存在";
        public static String deleteFailure    = "文件删除失败";
        public static String deleteSuccess    = "文件删除成功";
        public static String helpPrompt       = "帮助 （第 1 页/总 1 页）";
        public static String helpUse          = "显示帮助信息";
        public static String exitUse          = "退出";
        public static String verUse           = "查看当前版本";
        public static String setLangUse       = "设置语言（设置后自动清屏）";
        public static String dirLsUse         = "列出当前文件夹下的文件";
        public static String mkfileUse        = "创建文件";
        public static String typeUse          = "显示文件内容";
        public static String echoUse          = "回显字符串";
        public static String clsUse           = "清屏";
        public static String rmUse            = "删除文件";
    }
    public static class English extends LangEnv {
        public static String badCommand       = "Bad command";
        public static String invalidParameter = "The argument for the command is invalid";
        public static String createFailure    = "Failure while creating file";
        public static String createSuccess    = "Succeed while creating file";
        public static String files            = " File(s)";
        public static String fileNotExist     = "File doesn't exist";
        public static String deleteFailure    = "Failure while deleting file";
        public static String deleteSuccess    = "Succeed while deleting file";
        public static String helpPrompt       = "Help (Page 1/1)";
        public static String helpUse          = "Show this text";
        public static String exitUse          = "Exit";
        public static String verUse           = "Check the current version";
        public static String setLangUse       = "Set display language then clear screen";
        public static String dirLsUse         = "List the files in this folder";
        public static String mkfileUse        = "Create file";
        public static String typeUse          = "Show the text inside the file";
        public static String echoUse          = "Echo a string";
        public static String clsUse           = "Clear screen";
        public static String rmUse            = "Remove a file";
    }
}